<extend name="Public/base" />
<block name="style">
    <style type="text/css">
        .form-item{border-bottom: 1px dashed #ccc;padding-top: 5px;padding-bottom: 5px;}
        .item-label{float: left;width: 130px;text-align: right;padding-right: 20px;color: #999;}
        .controls{float: left;}
        .title{padding-left: 50px;border-bottom: 3px solid #ff3366;font-weight: bold;font-size: 16px;line-height: 35px;}
    </style>
</block>
<block name="body">
    <php>

        $basicInfo = $info['content']['basicInfo'];
        $contactInfo = $info['content']['contactInfo'];
        $relationInfo = $info['content']['relationInfo'];
        $personas = $info['content']['personas'];
        $basicInfoCheck = $info['content']['basicInfoCheck'];

        $riskListCheck = $info['content']['riskListCheck'];
        $overdueLoanCheck = $info['content']['overdueLoanCheck'];
        $multiLendCheck = $info['content']['multiLendCheck'];
        $riskCallCheck = $info['content']['riskCallCheck'];


        $callAnalysis = $info['content']['callAnalysis'];
        $activeCallAnalysis = $info['content']['activeCallAnalysis'];
        $silenceAnalysis = $info['content']['silenceAnalysis'];
        $callDurationAnalysis = $info['content']['callDurationAnalysis'];
        $contactAnalysis = $info['content']['contactAnalysis'];
    </php>
    <div class="main-title cf">
        <h2 style="padding-left: 10px;">{$info.name} 详细资料</h2>
    </div>
    <!-- 标签页导航 -->
    <div class="tab-wrap">
        <div class="tab-content">
            <ul class="tab-nav nav">
                <li data-tab="tab1" class="current"><a href="javascript:void(0);">基本信息  </a></li>
                <li data-tab="tab2" class=""><a href="javascript:void(0);">紧急联系人 </a></li>
                <li data-tab="tab3" class=""><a href="javascript:void(0);">关联信息  </a></li>
                <li data-tab="tab4" class=""><a href="javascript:void(0);">风险概况  </a></li>
                <li data-tab="tab5" class=""><a href="javascript:void(0);">信息检测   </a></li>
                <li data-tab="tab6" class=""><a href="javascript:void(0);">风险清单  </a></li>
                <li data-tab="tab7" class=""><a href="javascript:void(0);">信贷逾期  </a></li>
                <li data-tab="tab8" class=""><a href="javascript:void(0);">多头借贷  </a></li>
                <li data-tab="tab9" class=""><a href="javascript:void(0);">风险通话  </a></li>
                <li data-tab="tab10" class=""><a href="javascript:void(0);">通话概况   </a></li>
                <li data-tab="tab11" class=""><a href="javascript:void(0);">通话时间段   </a></li>
                <li data-tab="tab12" class=""><a href="javascript:void(0);">通话联系人分析   </a></li>
            </ul>
            <!-- 表单 -->
            <form id="form" method="post" class="form-horizontal doc-modal-form">
                       <!-- 学籍信息  -->
                <div id="tab1" class="tab-pane in tab1">

                    <div class="form-item cf">
                        <label class="item-label">手机号码 ：</label>
                        <div class="controls">
                            <span>{$basicInfo.mobile}</span>
                        </div>
                    </div>

                    <div class="form-item cf">
                        <label class="item-label">姓名 ： </label>
                        <div class="controls">
                            <span>{$basicInfo.name}</span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">入网时间 ： </label>
                        <div class="controls">
                            <span>{$basicInfo.regTime}</span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">身份证号 ： </label>
                        <div class="controls">
                            <span>{$basicInfo.identityNo}</span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">地址 ： </label>
                        <div class="controls">
                            <span>{$basicInfo.nativeAddress}</span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">性别  ： </label>
                        <div class="controls">
                            <span>{$basicInfo.gender}</span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">年龄  ： </label>
                        <div class="controls">
                            <span>{$basicInfo.age}</span>
                        </div>
                    </div>

                    <div class="form-item cf">
                        <label class="item-label">认证状态 ： </label>
                        <div class="controls">
                            <span>{:C('QIANBAO_AUTH_STATUS.'.$info[status])}</span>
                        </div>
                    </div>


                </div>

                    <!--   -->
                       <div id="tab2" class="tab-pane tab2">

                           <div class="data-table table-striped">
                               <table>
                                   <thead>
                                   <tr>
                                       <th style="width: 150px;">姓名</th>
                                       <th style="width: 150px;">手机号 </th>
                                       <th style="width: 150px;">身份证号 </th>
                                       <th style="width: 150px;">与本人关系 </th>
                                       <th>通话次数  </th>
                                       <th>通话时长  </th>
                                       <th>通话频度排名   </th>
                                       <th>是否命中风险清单  </th>
                                   </tr>
                                   </thead>
                                   <tbody>
                                   <notempty name="contactInfo">
                                       <volist name="contactInfo" id="vo">
                                           <tr>
                                               <td>{$vo.name}</td>
                                               <td>{$vo['mobile']}</td>
                                               <td> {$vo.identityNo} </td>
                                               <td> {$vo.relationship} </td>
                                               <td> {$vo.callCnt} </td>
                                               <td> {$vo.callTime} </td>
                                               <td> {$vo.callRank} </td>
                                               <td> {$vo.isHitRiskList} </td>
                                           </tr>
                                       </volist>
                                       <else/>
                                       <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
                                   </notempty>
                                   </tbody>
                               </table>
                           </div>
                       </div>
                <div id="tab3" class="tab-pane tab3">
                    <div class="form-item cf">
                        <label class="item-label">关联身份证信息：</label>
                        <div class="controls">
                            <span>
                                <volist name="relationInfo['identiyNos']" id="vo">
                                    {$vo}；
                                </volist>
                                </span>
                        </div>
                    </div>

                    <div class="form-item cf">
                        <label class="item-label">关联手机号信息： </label>
                        <div class="controls">
                            <span>
                                 <volist name="relationInfo['mobiles']" id="vo">
                                     {$vo}；
                                 </volist>
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">关联家庭地址信息： </label>
                        <div class="controls">
                            <span>
                                <volist name="relationInfo['homeAddresses']" id="vo">
                                    {$vo}；
                                </volist>
                               </span>
                        </div>
                    </div>
                </div>

                <div id="tab4" class="tab-pane tab4">
                    <div style="" class="title">风险概况 </div>
                    <div class="form-item cf">
                        <label class="item-label">风险清单次数 ： </label>
                        <div class="controls">
                            <span>
                                 {$personas['riskProfile']['riskListCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">逾期次数： </label>
                        <div class="controls">
                            <span>
                                 {$personas['riskProfile']['overdueLoanCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">多头借贷次数： </label>
                        <div class="controls">
                            <span>
                                 {$personas['riskProfile']['multiLendCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">风险通话次数： </label>
                        <div class="controls">
                            <span>
                                 {$personas['riskProfile']['riskCallCnt']}
                              </span>
                        </div>
                    </div>
                    <div style="" class="title">社交概况 </div>
                    <div class="form-item cf">
                        <label class="item-label">最常联系人区域： </label>
                        <div class="controls">
                            <span>
                                 {$personas['socialContactProfile']['freContactArea']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">联系人号码总数： </label>
                        <div class="controls">
                            <span>
                                 {$personas['socialContactProfile']['contactNumCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">互通号码数： </label>
                        <div class="controls">
                            <span>
                                 {$personas['socialContactProfile']['interflowContactCnt']}
                              </span>
                        </div>
                    </div>
                    <div style="" class="title">通话概况</div>
                    <div class="form-item cf">
                        <label class="item-label">日均通话次数： </label>
                        <div class="controls">
                            <span>
                                 {$personas['callProfile']['avgCallCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">日均通话次数： </label>
                        <div class="controls">
                            <span>
                                 {$personas['callProfile']['avgCallCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">日均通话时长： </label>
                        <div class="controls">
                            <span>
                                 {$personas['callProfile']['avgCallTime']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">静默次数 ： </label>
                        <div class="controls">
                            <span>
                                 {$personas['callProfile']['silenceCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">夜间通话次数 ： </label>
                        <div class="controls">
                            <span>
                                 {$personas['callProfile']['nightCallCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">夜间平均通话时长： </label>
                        <div class="controls">
                            <span>
                                 {$personas['callProfile']['nightAvgCallTime']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">月均消费： </label>
                        <div class="controls">
                            <span>
                                 {$personas['consumptionProfile']['avgFeeMonth']}
                              </span>
                        </div>
                    </div>
                </div>
               <div id="tab5" class="tab-pane tab5">


                   <div class="data-table table-striped">
                       <table>
                           <thead>
                           <tr>
                               <th style="width: 150px;">检查项  </th>
                               <th style="width: 150px;">检查项描述  </th>
                               <th >检查结果   </th>
                               <th >检查结果描述   </th>

                           </tr>
                           </thead>
                           <tbody>
                           <notempty name="basicInfoCheck">
                               <volist name="basicInfoCheck" id="vo">
                                   <tr>
                                       <td>{$vo.item}</td>
                                       <td>{$vo['desc']}</td>
                                       <td>
                                           <if condition="$vo['result'] eq 1 || $vo['result'] eq 2">
                                               通过
                                               <else />
                                               无效
                                           </if>
                                       </td>
                                       <td> {$vo.resultDesc} </td>
                                   </tr>
                               </volist>
                               <else/>
                               <td colspan="4" class="text-center"> aOh! 暂时还没有内容! </td>
                           </notempty>
                           </tbody>
                       </table>
                   </div>
                </div>
                <div id="tab6" class="tab-pane tab6">

                    <div class="data-table table-striped">
                        <table>
                            <thead>
                            <tr>
                                <th style="width: 150px;">检查项  </th>
                                <th style="width: 150px;">检查项描述  </th>
                                <th >检查结果   </th>

                            </tr>
                            </thead>
                            <tbody>
                            <notempty name="riskListCheck">
                                <volist name="riskListCheck" id="vo">
                                    <tr>
                                        <td>{$vo.item}</td>
                                        <td>{$vo['desc']}</td>
                                        <td> <eq name="riskListCheck['result']" value="1">通过<else/>未通过</eq> </td>


                                    </tr>
                                </volist>
                                <else/>
                                <td colspan="3" class="text-center"> aOh! 暂时还没有内容! </td>
                            </notempty>
                            </tbody>
                        </table>
                    </div>


                </div>
                <div id="tab7" class="tab-pane tab7">

                    <notempty name="overdueLoanCheck">
                        <volist name="overdueLoanCheck" id="vo">

                            <div class="data-table table-striped">
                                <div class="" style="background:#ff3366;line-height: 35px;padding-left: 10px;color: #fff">{$vo.desc}</div>
                                <table>
                                    <thead>
                                    <tr>
                                        <th style="width: 250px;">逾期金额(范围)    </th>
                                        <th style="width: 250px;">逾期天数(范围)  </th>
                                        <th >逾期时间</th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <notempty name="vo['details']">
                                        <volist name="vo['details']" id="vo2">
                                            <tr>
                                                <td> {$vo2['overdueAmt']} </td>
                                                <td> {$vo2['overdueDays']} </td>
                                                <td> {$vo2['overdueTime']} </td>
                                            </tr>
                                        </volist>
                                        <else/>
                                        <td colspan="3" class="text-center"> aOh! 暂时还没有内容! </td>
                                    </notempty>
                                    </tbody>
                                </table>
                            </div>
                        </volist>
                        <else/>
                        <div style="text-align: center"> aOh! 暂时还没有内容!</div>
                    </notempty>
                </div>
                <div id="tab8" class="tab-pane tab8">


                    <notempty name="multiLendCheck">
                        <volist name="multiLendCheck" id="vo">

                            <div class="data-table table-striped">
                                <div class="" style="background:#ff3366;line-height: 35px;padding-left: 10px;color: #fff">{$vo.desc}</div>
                                <table>
                                    <thead>
                                    <tr>
                                        <th style="width: 250px;">借贷平台类型    </th>
                                        <th >借贷次数 </th>
                                    </tr>
                                    </thead>
                                    <tbody>
                                    <notempty name="vo['details']">
                                        <volist name="vo['details']" id="vo2">
                                            <tr>
                                                <td> {$vo2['lendType']} </td>
                                                <td> {$vo2['lendCnt']} </td>
                                            </tr>
                                        </volist>
                                        <else/>
                                        <td colspan="2" class="text-center"> aOh! 暂时还没有内容! </td>
                                    </notempty>
                                    </tbody>
                                </table>
                            </div>
                        </volist>
                    </notempty>



                </div>
                <div id="tab9" class="tab-pane tab9">

                    <div class="data-table table-striped">
                        <table>
                            <thead>
                            <tr>
                                <th style="width: 150px;">检查项  </th>
                                <th style="width: 150px;">检查项描述  </th>
                                <th >命中描述</th>
                                <th >命中次数  </th>
                                <th >时长(s)   </th>
                                <th >通话标记   </th>
                                <th >通话类型   </th>
                                <th >通话时长  </th>
                            </tr>
                            </thead>
                            <tbody>
                            <notempty name="riskCallCheck">
                                <volist name="riskCallCheck" id="vo">
                                    <tr>
                                        <td>{$vo.item}</td>
                                        <td>{$vo['desc']}</td>
                                        <td>{$vo['hitDesc']}</td>
                                        <td>{$vo['cnt']}</td>
                                        <td>{$vo['duration']}</td>
                                        <td> {$vo['details'][0]['callTag']} </td>
                                        <td> {$vo['details'][0]['lendType']} </td>
                                        <td> {$vo['details'][0]['lendCnt']} </td>
                                        <td> {$vo['details'][0]['callTime']} </td>
                                    </tr>
                                </volist>
                                <else/>
                                <td colspan="9" class="text-center"> aOh! 暂时还没有内容! </td>
                            </notempty>
                            </tbody>
                        </table>
                    </div>
                </div>
                <div id="tab10" class="tab-pane tab10">
                    <div class="form-item cf">
                        <label class="item-label">通话时长(s)： </label>
                        <div class="controls">
                            <span>
                                   {$callAnalysis['avgCallCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">日均通话时长(s)： </label>
                        <div class="controls">
                            <span>
                                   {$callAnalysis['avgCallTime']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">日均主叫次数 ： </label>
                        <div class="controls">
                            <span>
                                   {$callAnalysis['avgCallingCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">日均主叫时长： </label>
                        <div class="controls">
                            <span>
                                   {$callAnalysis['avgCallingTime']}
                              </span>
                        </div>
                    </div>

                    <div class="form-item cf">
                        <label class="item-label">日均被叫次数 ： </label>
                        <div class="controls">
                            <span>
                                   {$callAnalysis['avgCalledCnt']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">日均被叫时长： </label>
                        <div class="controls">
                            <span>
                                   {$callAnalysis['avgCalledTime']}
                              </span>
                        </div>
                    </div>
                    <div class="form-item cf">
                        <label class="item-label">本地通话占比 ： </label>
                        <div class="controls">
                            <span>
                                   {$callAnalysis['locCallPct']}
                              </span>
                        </div>
                    </div>

                </div>

                <div id="tab11" class="tab-pane tab11">

                    <div class="data-table table-striped">
                        <table>
                            <thead>
                            <tr>
                                <th style="width: 150px;">项目 </th>
                                <th style="width: 150px;">描述  </th>
                                <th style="width: 150px;">通话次数  </th>
                                <th style="width: 150px;">通话号码数  </th>
                                <th>最常联系号码  </th>
                                <th>最常联系号码次数   </th>
                                <th>平均通话时长(s)    </th>
                                <th>主叫次数   </th>
                                <th>主叫时长(s)   </th>
                                <th>被叫次数   </th>
                                <th>被叫时长(s)   </th>
                            </tr>
                            </thead>
                            <tbody>
                            <notempty name="callDurationAnalysis">
                                <volist name="callDurationAnalysis" id="vo">
                                    <tr>
                                        <td>{$vo.item}</td>
                                        <td>{$vo['desc']}</td>
                                        <td> {$vo.callCnt} </td>
                                        <td> {$vo.callNumCnt} </td>
                                        <td> {$vo.freqContactNum} </td>
                                        <td> {$vo.freqContactNumCnt} </td>
                                        <td> {$vo.avgCallTime} </td>
                                        <td> {$vo.callingCnt} </td>
                                        <td> {$vo.callingTime} </td>
                                        <td> {$vo.calledCnt} </td>
                                        <td> {$vo.calledTime} </td>
                                    </tr>
                                </volist>
                                <else/>
                                <td colspan="11" class="text-center"> aOh! 暂时还没有内容! </td>
                            </notempty>
                            </tbody>
                        </table>
                    </div>



                </div>


                       <div id="tab12" class="tab-pane tab12">

                           <div class="data-table table-striped">
                               <table>
                                   <thead>
                                   <tr>
                                       <th style="width: 150px;">号码  </th>
                                       <th style="width: 150px;">风险名单  </th>
                                       <th style="width: 150px;">电话标记   </th>
                                       <th style="width: 150px;">归属地   </th>
                                       <th>通话次数   </th>
                                       <th>通话时长    </th>
                                       <th>主叫次数   </th>
                                       <th>主叫时长   </th>
                                       <th>被叫次数   </th>
                                       <th>被叫时长   </th>
                                       <th>最近一次通话时间</th>
                                       <th>最近一次通话时时长</th>
                                   </tr>
                                   </thead>
                                   <tbody>
                                   <notempty name="contactAnalysis">
                                       <volist name="contactAnalysis" id="vo">
                                           <tr>
                                               <td>{$vo.callNum}</td>
                                               <td>{$vo['isHitRiskList']}</td>
                                               <td> {$vo.callTag} </td>
                                               <td> {$vo.attribution} </td>
                                               <td> {$vo.callCnt} </td>
                                               <td> {$vo.callTime} </td>
                                               <td> {$vo.callingCnt} </td>
                                               <td> {$vo.callingTime} </td>
                                               <td> {$vo.calledCnt} </td>
                                               <td> {$vo.calledTime} </td>
                                               <td> {$vo.lastStart} </td>
                                               <td> {$vo.lastTime} </td>
                                           </tr>
                                       </volist>
                                       <else/>
                                       <td colspan="12" class="text-center"> aOh! 暂时还没有内容! </td>
                                   </notempty>
                                   </tbody>
                               </table>
                           </div>



                       </div>



                       <div class="form-item"> 
                           <input name="id" value="11" type="hidden">
                           <a class="ajax-get submit-btn btn" href="{:U('change?type=mobile&method=2&id='.$info['uid'])}">通过</a>
                           <a class="btn btn-return ajax-get" href="{:U('change?type=mobile&method=3&id='.$info['uid'])}">不通过</a>
                       </div>
            </form>
        </div>
    </div>
</block>
<block name="script">
    <script type="text/javascript" src="__STATIC__/jquery.dragsort-0.5.1.min.js"></script>
    <script type="text/javascript" charset="utf-8">
        Think.setValue("extend", {$info.extend|default=0});
        //导航高亮
        highlight_subnav('{:U('Authentication/mobile')}');


        $(function(){
            showTab();
        })

    </script>
</block>

